<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
    </div>
</body>
<script src="./node_modules/vue/dist/vue.js"></script>
<script src="../vue-demos/node_modules/vuex/dist/vuex.js"></script>
<script src="../vue-demos/node_modules/axios/dist/axios.js"></script>
<script>
    let moduleA={
        state:{
            num:666
        },
        mutations:{},
        actions:{},
        getter:{},
    }
    let moduleB ={
        state:{
            num:888
        },
        mutations:{},
        actions:{},
        getter:{},
    }
    let store = new Vuex.Store({
        modules:{
            a:moduleA,
            b:moduleB,
        }
    })
    console.log(store.state.a.num);
    console.log(store.state.b.num);
    let vm =new Vue({
        store,
        el:"#app",
    })
</script>
</html>